package com.ouken.activity;
import java.util.ArrayList;

import com.ouken.tool.Device;
import com.ouken.tool.DeviceslistAdapter;

import device_ctr.Device_ctr;

import android.os.Bundle;

import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.util.Log;
import android.view.KeyEvent;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.webkit.WebSettings;
import android.webkit.WebView;
import android.widget.ImageButton;
import android.widget.ImageView;
import android.widget.ListView;
import android.widget.RadioButton;
import android.widget.TextView;
import android.widget.AdapterView.OnItemClickListener;
import android.webkit.WebViewClient;
public class HelpWebActivity extends Activity {
	private ImageButton back1;
	private ImageButton back2;
	private Context context;
	private WebView wView;

	private void initView(){
		context = this;
		back1 = (ImageButton)findViewById(R.id.help_back2setting); 
	}
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.help_add_device);
		initView();
		wView = (WebView)findViewById(R.id.wv1);     
		WebSettings wSet = wView.getSettings();     
		wSet.setJavaScriptEnabled(true);     
		wView.setWebViewClient(new WebViewClient());             
		//wView.loadUrl("file:///android_asset/index.html");    
		//wView.loadUrl("content://com.android.htmlfileprovider/sdcard/index.html");  
		wView.loadUrl("http://tb.5168.net/explain.html");  
		back1.setOnClickListener(new View.OnClickListener() {
			
			@Override
			public void onClick(View v) {
				HelpWebActivity.this.finish();
			}
		});
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		return true;
	}

}
